//
//  DeviceMaterialTableViewCell.swift
//  XSQWiFi
//
//  Created by XinPengLee on 2025/5/8.
//

import UIKit

class DeviceMaterialTableViewCell: UITableViewCell {

    @IBOutlet weak var containView: UIView!
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.containView.layer.cornerRadius = 12

    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        if selected == true {
            self.containView.layer.borderColor = UIColor().colorConversionHex(Color_Value: "#0558F4").cgColor
            self.containView.layer.borderWidth = 2
        }else {
            self.containView.layer.cornerRadius = 12
            self.containView.layer.shadowColor = UIColor().colorConversionHex(Color_Value: "#000000").cgColor
            self.containView.layer.shadowOffset = CGSize.init(width: 3, height: 4);
            self.containView.layer.shadowOpacity = 0.1;
        }
        
    }
    
}
